class Sync extends egret.HashObject {
	private _phase: number = 0;
	private _step: number = 0;

	public constructor(step: number) {
		super();
		this._step = step;
		this._phase = ((Math.random() * Math.PI) * 2);
	}

	public get phase(): number {
		return (this._phase);
	}

	public tick() {
		this._phase = (this._phase + this._step);
		if (this._phase > (Math.PI * 2)) {
			this._phase = (this._phase - (Math.PI * 2));
		}
	}

}

